
import layout from '@/layout/index.vue'
const homeRouter = {
  sort: 1,
  path: '/core',
  redirect: 'index',
  component: layout,
  meta: {
    menuId: '1',
    title: '核心管理',
    icon: '核心系统'
  },
  children: [
    {
      path: '/core/region',
      name: 'regionalManagement',
      component: () => import('@v/core/region.vue'),
      meta: {
        sort: 11,
        menuId: '2',
        title: '区域管理',
        icon: '区域'
      }
    },
    {
      path: '/core/organization',
      name: 'organization',
      component: () => import('@v/core/organization.vue'),
      meta: {
        sort: 12,
        menuId: '3',
        title: '机构管理',
        icon: '机构'
      }
    },
    {
      path: '/core/role',
      name: 'role',
      component: () => import('@v/core/role.vue'),
      meta: {
        sort: 13,
        menuId: '4',
        title: '角色管理',
        icon: '角色管理'
      }
    },
    {
      path: '/core/user',
      name: 'user',
      component: () => import('@v/core/user.vue'),
      meta: {
        sort: 14,
        menuId: '5',
        title: '用户管理',
        icon: '用户管理'
      }
    },
    {
      path: '/core/log',
      name: 'log',
      component: () => import('@v/core/log.vue'),
      hidden: true, // 隐藏路由
      meta: {
        sort: 15,
        menuId: '6',
        title: '日志管理',
        icon: '系统日志'
      }
    },
    {
      path: '/core/apply',
      name: 'apply',
      component: () => import('@v/core/apply.vue'),
      meta: {
        sort: 16,
        menuId: '7',
        title: '资源管理',
        icon: '资源'
      }
    },
    // {
    //   path: '/core/functions',
    //   name: 'functions',
    //   component: () => import('@v/core/functions.vue'),
    //   meta: {
    //     title: '功能管理',
    //     icon: '系统日志'
    //   }
    // },
    // {
    //   path: '/core/routerAdress',
    //   name: 'routerAdress',
    //   component: () => import('@v/core/routerAdress.vue'),
    //   meta: {
    //     title: '路由地址管理',
    //     icon: '系统日志'
    //   }
    // },
    {
      path: '/core/dataDictionary',
      name: 'dataDictionary',
      component: () => import('@v/core/dataDictionary.vue'),
      meta: {
        sort: 17,
        menuId: '8',
        title: '数据字典',
        icon: '数据'
      }
    }
  ]
}

export default homeRouter

